import {createRouter, createWebHistory} from 'vue-router'
import chat from '../views/chat.vue';
import Welcome from "@/views/welcome.vue";
import Topic from "@/views/topic.vue";
import collectionsVue from '@/views/collections.vue';

const router = createRouter({
    history: createWebHistory(import.meta.env.BASE_URL),
    routes: [
        {
            path: "/",
            component: Welcome,
            name: 'index'
        },
        {
            path: "/chat",
            component: chat,
            name: 'chat'
        }, {
            path: '/topics',
            component: Topic,
            name: 'topic'
        }, {
            path: '/collectons',
            component: collectionsVue,
            name: 'collection'
        }
    ]
})

export default router;
